import Vue from "vue"
// 1. 引入vue-router
import VueRouter from "vue-router"
// 2. 需要安装一下VueRouter插件
Vue.use(VueRouter);

import Index from "../components/index.vue"
import Login from "../components/login.vue";

// 3. 制定路由规则
export default new VueRouter({
    routes: [
        {
            path: "/index",
            component: Index
        },
        {
            path: "/login",
            component: Login
        }
    ]
});